﻿using System.Collections.Generic;

namespace Rail.Commons
{
    public class BusinessAndConditionsHelper
    {
        /// <summary>
        /// 保存新加config业务类型资源
        /// </summary>
        /// <returns></returns>
        public static Dictionary<string, string> SaveBussinessTypeResource()
        {
            Dictionary<string, string> dic = new Dictionary<string, string>();
            dic["城镇土地资源评价"] = "TownLandResource";
            dic["农业土地资源评价"] = "AgriculturalLandResource";
            dic["城镇水资源评价"] = "TownWaterResource";
            dic["农业水资源评价"] = "AgriculturalWaterResource";
            dic["城镇气候评价"] = "TownClimateResource";
            dic["农业气候评价"] = "AgriculturalClimateResource";
            dic["城镇大气环境容量"] = "TownAtmosphericEnvironmentalResource";
            dic["城镇水环境容量"] = "TownWaterEnvironmentalResource";
            dic["农业环境评价"] = "AgriculturalEnvironmentalResource";
            dic["城镇省级层面区位优势度评价"] = "TownProvincialLocationAdvantageResource";
            dic["城镇市县层面区位优势度评价"] = "TownCountyLocationAdvantageResource";
            dic["农业生态评价"] = "AgriculturalEcologyResource";
            dic["农业灾害评价"] = "AgriculturalHazard";
            dic["城镇风暴潮灾害评价"] = "TownStormTide";
            dic["城镇地质灾害评价"] = "TownGeologicalHazard";
            dic["城镇建设集成评价"] = "TownIntegration";
            dic["农业生产集成评价"] = "AgriculturalIntegration";
            dic["农业土地承载力评价"] = "AgriculturalLandCapacity";
            dic["水资源约束下农业生产承载规模评价"] = "AgriculturalWaterCapacity";
            dic["矿产采空区分析"] = "AgriculturalMinedOutAreaAnalyze";
            dic["城镇土地承载力评价"] = "TownLandCapacity";
            dic["水资源约束下城镇建设承载规模评价"] = "TownWaterCapacity";
            dic["黄土漏斗分析"] = "LoessAreaAnalyze";
            dic["文化遗址区评价"] = "CulturalHeritageAreaAnalyze";
            dic["生态水土保持分析"] = "EcologyWaterLandConservation";
            dic["物种层面生物多样性维护功能评价"] = "EcologySpeciesLevelBiodiversity";
            dic["生态系统层面生物多样性维护功能评价"] = "EcologyEcosystemLevelBiodiversity";
            dic["生态水源涵养功能评价"] = "EcologyWaterConservation";
            dic["生态防风固沙功能评价"] = "EcologyWindAndSandFixation";
            dic["生态海岸防护功能评价"] = "EcologyCoastalProtection";
            dic["生态系统服务功能重要性集成评价"] = "EcologyEcosystemServiceIntegrated";
            dic["生态水土流失敏感性评价"] = "EcologySoilErosionSensitivity";
            dic["生态沙化敏感性评价"] = "EcologySandificationSensitivity";
            dic["生态石漠化敏感性评价"] = "EcologyDesertification";
            dic["生态海岸线侵蚀敏感性评价"] = "EcologyCoastErosion";                 
            dic["生态敏感性集成评价"] = "EcologyEcologicalSensitivityIntegrated";
            dic["生态保护重要性等级初判"] = "EcologyIntegrated";
            dic["生态保护重要性等级修正"] = "EcologyIntegratedCorrect";
            dic["种植业生产适宜性评价"] = "CultivationProduction";
            dic["牧区畜牧业生产适宜性评价"] = "PastureHusbandry";
            dic["农区畜牧业生产适宜性评价"] = "AgriHusbandry";
            dic["农业生产适宜性集成评价"] = "AgriculturalSuitability";
            dic["渔业捕捞生产适宜性评价"] = "Fishing";
            dic["渔业养殖生产适宜性评价"] = "FisheryCulture";
            dic["城镇承载规模评价"] = "TownCapacity";
            return dic;
        }


        /// <summary>
        /// 导入业务类型资源
        /// </summary>
        /// <returns></returns>
        public static Dictionary<string, string> OpenBussinessTypeResource()
        {
            Dictionary<string, string> dic = new Dictionary<string, string>();
            dic["TownLandResource"] = "城镇土地资源评价";
            dic["AgriculturalLandResource"] = "农业土地资源评价";
            dic["TownWaterResource"] = "城镇水资源评价";
            dic["AgriculturalWaterResource"] = "农业水资源评价";
            dic["TownClimateResource"] = "城镇气候评价";
            dic["AgriculturalClimateResource"] = "农业气候评价";
            dic["TownAtmosphericEnvironmentalResource"] = "城镇大气环境容量";
            dic["TownWaterEnvironmentalResource"] = "城镇水环境容量";
            dic["AgriculturalEnvironmentalResource"] = "农业环境评价";
            dic["TownProvincialLocationAdvantageResource"] = "城镇省级层面区位优势度评价";
            dic["TownCountyLocationAdvantageResource"] = "城镇市县层面区位优势度评价";
            dic["AgriculturalEcologyResource"] = "农业生态评价";
            dic["AgriculturalHazard"] = "农业灾害评价";
            dic["TownStormTide"] = "城镇风暴潮灾害评价";
            dic["TownGeologicalHazard"] = "城镇地质灾害评价";
            dic["TownIntegration"] = "城镇建设集成评价";
            dic["AgriculturalIntegration"] = "农业生产集成评价";
            dic["AgriculturalLandCapacity"] = "农业土地承载力评价";
            dic["AgriculturalWaterCapacity"] = "水资源约束下农业生产承载规模评价";
            dic["AgriculturalMinedOutAreaAnalyze"] = "矿产采空区分析";
            dic["TownLandCapacity"] = "城镇土地资源承载力评价";
            dic["TownWaterCapacity"] = "水资源约束下城镇建设承载规模评价";
            dic["LoessAreaAnalyze"] = "黄土漏斗分析";
            dic["CulturalHeritageAreaAnalyze"] = "文化遗址区评价";
            dic["EcologyWaterLandConservation"] = "生态水土保持分析";
            dic["EcologySpeciesLevelBiodiversity"] = "物种层面生物多样性维护功能评价";
            dic["EcologyEcosystemLevelBiodiversity"] = "生态系统层面生物多样性维护功能评价";
            dic["EcologyWaterConservation"] = "生态水源涵养功能评价";
            dic["EcologyWindAndSandFixation"] = "生态防风固沙功能评价";
            dic["EcologyCoastalProtection"] = "生态海岸防护功能评价";
            dic["EcologyEcosystemServiceIntegrated"] = "生态系统服务功能重要性集成评价";
            dic["EcologySoilErosionSensitivity"] = "生态水土流失敏感性评价";
            dic["EcologySandificationSensitivity"] = "生态沙化敏感性评价";
            dic["EcologyDesertification"] = "生态石漠化敏感性评价";
            dic["EcologyCoastErosion"] = "生态海岸线侵蚀敏感性评价";
            dic["EcologyEcologicalSensitivityIntegrated"] = "生态敏感性集成评价";
            dic["EcologyIntegrated"] = "生态保护重要性等级初判";
            dic["EcologyIntegratedCorrect"] = "生态保护重要性等级修正";
            dic["CultivationProduction"] = "种植业生产适宜性评价";
            dic["PastureHusbandry"] = "牧区畜牧业生产适宜性评价";
            dic["AgriHusbandry"] = "农区畜牧业生产适宜性评价";
            dic["AgriculturalSuitability"] = "农业生产适宜性集成评价";
            dic["Fishing"] = "渔业捕捞生产适宜性评价";
            dic["FisheryCulture"] = "渔业养殖生产适宜性评价";
            dic["TownCapacity"] = "城镇承载规模评价";
            return dic;
        }

        /// <summary>
        /// 各评价业务分级单位
        /// </summary>
        /// <returns></returns>
        public static Dictionary<string, string> pyconfigUnitNameDic = new Dictionary<string, string>()
        {
            { "TownDemSlope","°"},//城镇土地资源
             { "AgriculturalDemSlope","°"},//农业土地资源
            { "TownWaterClassification","m³/km²"},//城镇水资源
            { "AgriculturalWaterClassification","mm"},//农行水资源
            { "AgriculturalClimateClassification","℃"},//农业气候
            { "AgriculturalHazardClassification","%"},//农业灾害
            { "AtmosphericStaticWindDays","%"},//大气环境容量静风日数占比
            { "AtmosphericAverageWindSpeed","m/s"}//大气环境容量平均风速占比
        };
    }
}